package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the COST_CONTRACT_BOQS database table.
 * 
 */
@Entity
@Table(name="COST_CONTRACT_BOQS")
@NamedQueries({
    @NamedQuery(name = "CostContractBoq.findAll", query = " SELECT c FROM CostContractBoq c "),
    @NamedQuery(name = "CostContractBoq.findById", query = " SELECT c FROM CostContractBoq c WHERE c.id = :Id ")
})
public class CostContractBoq extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private CostContractBoqPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="ACTIVITY_CODE")
	private String activityCode;

	@Column(name="ACTIVITY_DESC")
	private String activityDesc;

	@Column(name="ACTIVITY_GROUP_CODE")
	private String activityGroupCode;

	@Column(name="BF_VAT_NET_AMOUNT")
	private BigDecimal bfVatNetAmount;

	@Column(name="BOQ_BID_CODE")
	private String boqBidCode;

	@Column(name="BOQ_CODE")
	private String boqCode;

	@Column(name="BUILDING_PHASE")
	private String buildingPhase;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="DIRECT_COST_AMOUNT")
	private BigDecimal directCostAmount;

	@Column(name="GD_AMOUNT")
	private BigDecimal gdAmount;

	@Column(name="GD_PERCENT")
	private BigDecimal gdPercent;

	@Column(name="GD_PERIOD_UM")
	private String gdPeriodUm;

	@Column(name="GD_TYPE")
	private String gdType;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="PHASE_CODE")
	private String phaseCode;

	@Column(name="PN_AMOUNT")
	private BigDecimal pnAmount;

	@Column(name="PN_DAY_LIMIT")
	private BigDecimal pnDayLimit;

	@Column(name="PN_PERCENT")
	private BigDecimal pnPercent;

	@Column(name="PN_PERCENT_LIMIT")
	private BigDecimal pnPercentLimit;

	@Column(name="PN_TYPE")
	private String pnType;

	@Column(name="PRELIMINARY_AMOUNT")
	private BigDecimal preliminaryAmount;

	@Column(name="PROFIT_AMOUNT")
	private BigDecimal profitAmount;

	private String project;

	@Column(name="REF_BOQ_CODE")
	private String refBoqCode;

	private BigDecimal revision;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="START_DATE")
	private Date startDate;

	private String status;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="STOP_DATE")
	private Date stopDate;

	@Column(name="SUPPLIER_CODE")
	private String supplierCode;

	@Column(name="TOTAL_AMOUNT")
	private BigDecimal totalAmount;

	@Column(name="TOTAL_INSTALLMENT")
	private BigDecimal totalInstallment;

	@Column(name="VAT_AMOUNT")
	private BigDecimal vatAmount;
	
	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

    public CostContractBoq() {
    }

    
    
	public String getSyncCreatedby() {
		return syncCreatedby;
	}



	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}



	public Date getSyncCreatedon() {
		return syncCreatedon;
	}



	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}



	public String getSyncExternalRefKey() {
		return syncExternalRefKey;
	}



	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}



	public String getSyncExternalRefNo() {
		return syncExternalRefNo;
	}



	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}



	public String getSyncIsstaging() {
		return syncIsstaging;
	}



	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}



	public String getSyncIssync() {
		return syncIssync;
	}



	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}



	public String getSyncUpdatedby() {
		return syncUpdatedby;
	}



	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}



	public Date getSyncUpdatedon() {
		return syncUpdatedon;
	}



	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}



	public CostContractBoqPK getId() {
		return this.id;
	}

	public void setId(CostContractBoqPK id) {
		this.id = id;
	}
	
	public String getActivityCode() {
		return this.activityCode;
	}

	public void setActivityCode(String activityCode) {
		this.activityCode = activityCode;
	}

	public String getActivityDesc() {
		return this.activityDesc;
	}

	public void setActivityDesc(String activityDesc) {
		this.activityDesc = activityDesc;
	}

	public String getActivityGroupCode() {
		return this.activityGroupCode;
	}

	public void setActivityGroupCode(String activityGroupCode) {
		this.activityGroupCode = activityGroupCode;
	}

	public BigDecimal getBfVatNetAmount() {
		return this.bfVatNetAmount;
	}

	public void setBfVatNetAmount(BigDecimal bfVatNetAmount) {
		this.bfVatNetAmount = bfVatNetAmount;
	}

	public String getBoqBidCode() {
		return this.boqBidCode;
	}

	public void setBoqBidCode(String boqBidCode) {
		this.boqBidCode = boqBidCode;
	}

	public String getBoqCode() {
		return this.boqCode;
	}

	public void setBoqCode(String boqCode) {
		this.boqCode = boqCode;
	}

	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public BigDecimal getDirectCostAmount() {
		return this.directCostAmount;
	}

	public void setDirectCostAmount(BigDecimal directCostAmount) {
		this.directCostAmount = directCostAmount;
	}

	public BigDecimal getGdAmount() {
		return this.gdAmount;
	}

	public void setGdAmount(BigDecimal gdAmount) {
		this.gdAmount = gdAmount;
	}

	public BigDecimal getGdPercent() {
		return this.gdPercent;
	}

	public void setGdPercent(BigDecimal gdPercent) {
		this.gdPercent = gdPercent;
	}

	public String getGdPeriodUm() {
		return this.gdPeriodUm;
	}

	public void setGdPeriodUm(String gdPeriodUm) {
		this.gdPeriodUm = gdPeriodUm;
	}

	public String getGdType() {
		return this.gdType;
	}

	public void setGdType(String gdType) {
		this.gdType = gdType;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getPhaseCode() {
		return this.phaseCode;
	}

	public void setPhaseCode(String phaseCode) {
		this.phaseCode = phaseCode;
	}

	public BigDecimal getPnAmount() {
		return this.pnAmount;
	}

	public void setPnAmount(BigDecimal pnAmount) {
		this.pnAmount = pnAmount;
	}

	public BigDecimal getPnDayLimit() {
		return this.pnDayLimit;
	}

	public void setPnDayLimit(BigDecimal pnDayLimit) {
		this.pnDayLimit = pnDayLimit;
	}

	public BigDecimal getPnPercent() {
		return this.pnPercent;
	}

	public void setPnPercent(BigDecimal pnPercent) {
		this.pnPercent = pnPercent;
	}

	public BigDecimal getPnPercentLimit() {
		return this.pnPercentLimit;
	}

	public void setPnPercentLimit(BigDecimal pnPercentLimit) {
		this.pnPercentLimit = pnPercentLimit;
	}

	public String getPnType() {
		return this.pnType;
	}

	public void setPnType(String pnType) {
		this.pnType = pnType;
	}

	public BigDecimal getPreliminaryAmount() {
		return this.preliminaryAmount;
	}

	public void setPreliminaryAmount(BigDecimal preliminaryAmount) {
		this.preliminaryAmount = preliminaryAmount;
	}

	public BigDecimal getProfitAmount() {
		return this.profitAmount;
	}

	public void setProfitAmount(BigDecimal profitAmount) {
		this.profitAmount = profitAmount;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getRefBoqCode() {
		return this.refBoqCode;
	}

	public void setRefBoqCode(String refBoqCode) {
		this.refBoqCode = refBoqCode;
	}

	public BigDecimal getRevision() {
		return this.revision;
	}

	public void setRevision(BigDecimal revision) {
		this.revision = revision;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getStopDate() {
		return this.stopDate;
	}

	public void setStopDate(Date stopDate) {
		this.stopDate = stopDate;
	}

	public String getSupplierCode() {
		return this.supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public BigDecimal getTotalAmount() {
		return this.totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getTotalInstallment() {
		return this.totalInstallment;
	}

	public void setTotalInstallment(BigDecimal totalInstallment) {
		this.totalInstallment = totalInstallment;
	}

	public BigDecimal getVatAmount() {
		return this.vatAmount;
	}

	public void setVatAmount(BigDecimal vatAmount) {
		this.vatAmount = vatAmount;
	}

}